<?php

class Social_Plugin_Service_Abstract
{
    protected $_serviceName;

    protected $_plugin = null;

    protected $_options = array();

    public function __construct()
    {
        $this -> _init();
    }

    public function getOptions()
    {
        return $this -> _options;
    }

    public function setOptions($options)
    {
        $this -> _options = $options;
        return $this;
    }

    public function setOption($name, $value)
    {
        $this -> _options[$name] = $value;
        return $his;
    }

    public function getOption($name, $default = null)
    {
        return isset($this -> _options[$name]) ? $this -> _options[$name] : $default;
    }

    public function getServiceName()
    {
        return $this -> _serviceName;
    }

    public function getPlugin()
    {
        return $this -> _plugin;
    }

    public function setPlugin($plugin)
    {
        $this -> _plugin = $plugin;
        return $this;
    }

}
